package com.example.demo.mapper;

import com.example.demo.entity.Announcement;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface AnnouncementMapper {

    @Select("SELECT * from announcement")
    List<Announcement> findAll();
}
